package com.zucc.service;

import com.zucc.controller.req.AttachmentSearchReq;
import com.zucc.controller.resp.AttachmentResp;
import com.zucc.service.base.PageData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author : charspan
 * @Description :
 * @create : 2021-12-05 3:29 下午
 */
public interface AttachmentService {
    PageData<AttachmentResp> page(AttachmentSearchReq req);

    AttachmentResp upload(Long id, Long buzId, MultipartFile file);

    void download(Long id, HttpServletResponse resp);

    void downloadFile(HttpServletResponse response, String inFileName, String outFileNam);
}
